﻿<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="EmpPassedList.aspx.cs" Inherits="UI.ModEmployee.EmpPassedList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>转正信息列表</title>
      <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body >
    <form id="form1" runat="server">
       <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            转正信息列表</div>
        <div class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px"></asp:TextBox>
              <asp:DropDownList ID="ddlPassedTypeName" runat="server">
            </asp:DropDownList>
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            <asp:DropDownList ID="ddlInfoType" runat="server" CssClass="InputCss" TabIndex="8">
                </asp:DropDownList>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" />
           
            <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss"  /> 
            <asp:Button ID="btnBatchAdd" runat="server" Text="批量增加"  CssClass="ButtonCss" />
            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" 
                onclick="btnExcel_Click"  />
            &nbsp;
        </div>
    </div>
 <asp:GridView ID="gvList" runat="server" DataKeyNames="PassedID" Width="1000" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal" CssClass="td" OnRowDataBound="gvList_RowDataBound">
        <Columns>
            <asp:BoundField DataField="PassedID" HeaderText="PassedID" SortExpression="PassedID">
            </asp:BoundField>
              <asp:BoundField DataField="OldDeptName" HeaderText="部门" SortExpression="OldDeptName">
                <ItemStyle Width="100px" />
            </asp:BoundField>   
            <asp:TemplateField HeaderText="员工工号" SortExpression="EmpCode"   ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('EmpPassedAdd.aspx?PassedID=<%# Eval("PassedID")%>',800,550)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName"   ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('EmpPassedAdd.aspx?PassedID=<%# Eval("PassedID")%>',800,550)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>           
          
             <asp:BoundField DataField="OldAreaName" HeaderText="区域" SortExpression="OldAreaName">
                <ItemStyle Width="80px" />
            </asp:BoundField>  
              <asp:BoundField DataField="InfoTypeName" HeaderText="信息类型" SortExpression="InfoTypeName">
                <ItemStyle Width="80px" />
            </asp:BoundField>                  
            <asp:BoundField DataField="OldDutyName" HeaderText="原职务" SortExpression="OldDutyName">
                <ItemStyle Width="80px" />
            </asp:BoundField>
               <asp:BoundField DataField="PassedTypeName" HeaderText="转正类别" SortExpression="PassedTypeName">
                <ItemStyle Width="80px" />
            </asp:BoundField>            
            <asp:BoundField DataField="NewDutyName" HeaderText="新职务" SortExpression="NewDutyName">
                <ItemStyle Width="80px" />
            </asp:BoundField>

            <asp:BoundField DataField="JoinTime" HeaderText="入职时间" DataFormatString="{0:d}" SortExpression="JoinTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="PassedTime" HeaderText="转正时间" DataFormatString="{0:d}" SortExpression="PassedTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>           
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="90px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
     <div id="divAmount" class="amountLine">
    <asp:Label ID="lbAmount" runat="server" ></asp:Label>
    </div>
    </form>
</body>
</html>
